import ReactDOM from 'react-dom/client'
import 'reset-css'
import '@/assets/styles/global.scss'
import App from "@/App.tsx";
import {BrowserRouter} from "react-router-dom";
import {Provider} from 'react-redux'
import {persistor, store} from "@/store";
import {PersistGate} from 'redux-persist/integration/react';
import '@/lang/config.tsx'

ReactDOM.createRoot(document.getElementById('root')!).render(
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
      <BrowserRouter>
        <App/>
      </BrowserRouter>
    </PersistGate>
  </Provider>
)
